package com.woniuxy.demo;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author 罗蔚
 * @Date 2022/3/24 15:23
 * @Description TODO
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classroomApplicationContext.xml");
        Classroom classroom = applicationContext.getBean("classroom", Classroom.class);
        System.out.println(classroom);
    }

}
